export const routes = [
  { 
    path: "/", 
    component: "@/pages/index", 
    name: "首页",
    icon: "HomeOutlined"
  },
  {
    path: "/products",
    name: "商品管理",
    icon: "ShopOutlined",
    routes: [
      {
        path: "/products/list",
        component: "@/pages/products/List",
        name: "商品列表"
      },
      {
        path: "/products/publish",
        component: "@/pages/products/Publish",
        name: "发布商品"
      },
      {
        path: "/products/my",
        component: "@/pages/products/MyProducts",
        name: "我的商品"
      },
      {
        path: "/products/detail/:id",
        component: "@/pages/products/Detail",
        name: "商品详情",
        hideInMenu: true
      }
    ]
  },
  {
    path: "/search",
    component: "@/pages/search/Index",
    name: "商品搜索",
    icon: "SearchOutlined"
  },
  {
    path: "/categories",
    component: "@/pages/categories/Index",
    name: "分类浏览",
    icon: "AppstoreOutlined"
  },
  {
    path: "/recommend",
    name: "推荐专区",
    icon: "RocketOutlined",
    routes: [
      {
        path: "/recommend/hot",
        component: "@/pages/recommend/Hot",
        name: "热门推荐"
      },
      {
        path: "/recommend/latest",
        component: "@/pages/recommend/Latest",
        name: "最新上架"
      },
      {
        path: "/recommend/nearby",
        component: "@/pages/recommend/Nearby",
        name: "附近商品"
      }
    ]
  }
];